<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{zjxmForm.bundleName}"/>
    <head>
        <title>#{text['zjxmDetail.title']}</title>
        <meta name="heading" content="#{text['zjxmDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="zjxmForm">

<h:form id="zjxmForm" onsubmit="return validateZjxmForm(this)">
<h:inputHidden value="#{zjxmForm.zjxm.id}" id="id"/>
<h:panelGrid columns="3">
    <h:outputLabel styleClass="desc" for="xmmc" value="#{text['zjxm.xmmc']}"/>
    <t:message for="xmmc" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="xmmc" value="#{zjxmForm.zjxm.xmmc}" required="false" maxlength="50">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="jk" value="#{text['zjxm.jk']}"/>
    <t:message for="jk" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="jk" value="#{zjxmForm.zjxm.jk}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="kjhl" value="#{text['zjxm.kjhl']}"/>
    <t:message for="kjhl" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="kjhl" value="#{zjxmForm.zjxm.kjhl}" required="false" maxlength="100">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="kssj" value="#{text['zjxm.kssj']}"/>
    <t:message for="kssj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="kssj" value="#{zjxmForm.zjxm.kssj}" required="false" maxlength="10">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="operation" value="#{text['zjxm.operation']}"/>
    <t:message for="operation" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="operation" value="#{zjxmForm.zjxm.operation}" required="false" maxlength="20">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="optdate" value="#{text['zjxm.optdate']}"/>
    <t:message for="optdate" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="optdate" value="#{zjxmForm.zjxm.optdate}" required="false" maxlength="23">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="qt" value="#{text['zjxm.qt']}"/>
    <t:message for="qt" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="qt" value="#{zjxmForm.zjxm.qt}" required="false" maxlength="500">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="username" value="#{text['zjxm.username']}"/>
    <t:message for="username" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="username" value="#{zjxmForm.zjxm.username}" required="false" maxlength="50">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="xh" value="#{text['zjxm.xh']}"/>
    <t:message for="xh" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="xh" value="#{zjxmForm.zjxm.xh}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="yjwcsj" value="#{text['zjxm.yjwcsj']}"/>
    <t:message for="yjwcsj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="yjwcsj" value="#{zjxmForm.zjxm.yjwcsj}" required="false" maxlength="20">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="yjwlscxy" value="#{text['zjxm.yjwlscxy']}"/>
    <t:message for="yjwlscxy" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="yjwlscxy" value="#{zjxmForm.zjxm.yjwlscxy}" required="false" maxlength="100">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="yjzjhssj" value="#{text['zjxm.yjzjhssj']}"/>
    <t:message for="yjzjhssj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="yjzjhssj" value="#{zjxmForm.zjxm.yjzjhssj}" required="false" maxlength="20">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="zhsje" value="#{text['zjxm.zhsje']}"/>
    <t:message for="zhsje" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="zhsje" value="#{zjxmForm.zjxm.zhsje}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="ztz" value="#{text['zjxm.ztz']}"/>
    <t:message for="ztz" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="ztz" value="#{zjxmForm.zjxm.ztz}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="zyzj" value="#{text['zjxm.zyzj']}"/>
    <t:message for="zyzj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="zyzj" value="#{zjxmForm.zjxm.zyzj}" required="false" maxlength="255">
    </h:inputText>

    <h:panelGroup styleClass="buttonBar bottom">
        <h:commandButton value="#{text['button.save']}" action="#{zjxmForm.save}" id="save" styleClass="button"/>

        <c:if test="${not empty zjxmForm.zjxm.id}">
        <h:commandButton value="#{text['button.delete']}" action="#{zjxmForm.delete}"
            id="delete" styleClass="button" onclick="bCancel=true; return confirmDelete('Zjxm')"/>
        </c:if>

        <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
            id="cancel" styleClass="button" onclick="bCancel=true"/>
    </h:panelGroup>
    <h:outputText/><h:outputText/>
</h:panelGrid>
</h:form>

<v:validatorScript functionName="validateZjxmForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('zjxmForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html>
